Safe Recursion on Notation into a Light Logic by Levels
نویسندگان
چکیده
We embed Safe Recursion on Notation (SRN) into Light Affine Logic by Levels (LALL), derived from the logic ML4. LALL is an intuitionistic deductive system, with a polynomial time cut elimination strategy. The embedding allows to represent every term t of SRN as a family of nets 〈⌈t⌉〉l∈N in LALL. Every net ⌈t⌉l in the family simulates t on arguments whose bit length is bounded by the integer l. The embedding is based on two crucial features. One is the recursive type in LALL that encodes Scott binary numerals, i.e. Scott words, as nets. Scott words represent the arguments of t in place of the more standard Church binary numerals. Also, the embedding exploits the “fuzzy” borders of paragraph boxes that LALL inherits from ML4 to “freely” duplicate the arguments, especially the safe ones, of t. Finally, the type of ⌈t⌉l depends on the number of composition and recursion schemes used to define t, namely the structural complexity of t. Moreover, the size of ⌈t⌉l is a polynomial in l, whose degree depends on the structural complexity of t. So, this work makes closer both the predicative recursive theoretic principles SRN relies on, and the proof theoretic one, called stratification, at the base of Light Linear Logic.
منابع مشابه
Weak Affine Light Typing is complete with respect to Safe Recursion on Notation
Weak affine light typing (WALT) assigns light affine linear formulae as types to a subset of λ-terms of 5 System F.WALT is poly-time sound: if a λ-termM has type inWALT,M can be evaluated with a polynomial cost in the dimension of the derivation that gives it a type. The evaluation proceeds under any strategy of a rewriting relation which is a mix of both call-by-name and call-by-value β-reduct...
متن کاملWeak Affine Light Typing: Polytime intensional expressivity, soundness and completeness
Ridefinite Quasi-linear come Composition-linear Weak affine light typing (WALT) assigns light affine linear formulae as types to a subset of λ-terms in System F. WALT is poly-time sound: if a λ-term M has type in WALT, M can be evaluated with a polynomial cost in the dimension of the derivation that gives it a type. In particular, the evaluation can proceed under any strategy of a rewriting rel...
متن کاملSafe recursion with higher types and BCK-algebra
In previous work the author has introduced a lambda calculus SLR with modal and linear types which serves as an extension of Bellantoni–Cook’s function algebra BC to higher types. It is a step towards a functional programming language in which all programs run in polynomial time. In this paper we develop a semantics of SLR using BCK-algebras consisting of certain polynomial-time algorithms. It ...
متن کاملCobham recursive set functions
This paper introduces the Cobham Recursive Set Functions (CRSF) as a version of polynomial time computable functions on general sets, based on a limited (bounded) form of ∈-recursion. This is inspired by Cobham’s classic definition of polynomial time functions based on limited recursion on notation. We introduce a new set composition function, and a new smash function for sets which allows poly...
متن کاملHow Light Is Safe Recursion? Compositional Translations Between Languages of Polynomial Time
We investigate the relationship between two polynomial time languages: Bellantoni and Cook’s functional combinator language BC, and Girard’s Light Linear Logic LAL (as amended by Asperti). It is known that both languages characterize exactly the polynomial time functions. Despite this similarity, an open question has been to provide a compositional translation between the two languages: given a...
متن کامل